home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / AgnesSorel.dxr / 00059_hot spot.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  1.7 KB  |  36 lines

  1. on beginSprite me
  2.   global tableau
  3.   sprite(me.spriteNum).blendLevel = 0
  4.   sprite(me.spriteNum).loc = tableau[string(sprite(me.spriteNum).startFrame).symbol].cards[tableau[string(sprite(me.spriteNum).startFrame).symbol].cards.count].location
  5. end
  6.  
  7. on mouseEnter me
  8.   global equalvalue2, hotti, tableau
  9.   if sprite(me.spriteNum).visible <> 0 then
  10.     if (the clickOn <> 0) and (the clickOn <> me.spriteNum) then
  11.       if sprite(the clickOn).moveableSprite = 1 then
  12.         if sprite(the clickOn).visible = 1 then
  13.           if tableau[string(sprite(me.spriteNum).startFrame).symbol].cards.count > 0 then
  14.             hotti = tableau[string(sprite(me.spriteNum).startFrame).symbol].cards[tableau[string(sprite(me.spriteNum).startFrame).symbol].cards.count].spnum + 1
  15.             if objectp(tableau[string(sprite(the clickOn).startFrame).symbol].cards[string(the clickOn).symbol]) then
  16.               if tableau[string(sprite(the clickOn).startFrame).symbol].cards[string(the clickOn).symbol].suitcolor = tableau[string(sprite(me.spriteNum).startFrame).symbol].cards[tableau[string(sprite(me.spriteNum).startFrame).symbol].cards.count].suitcolor then
  17.                 if tableau[string(sprite(the clickOn).startFrame).symbol].cards[string(the clickOn).symbol].rankvalue = (tableau[string(sprite(me.spriteNum).startFrame).symbol].cards[tableau[string(sprite(me.spriteNum).startFrame).symbol].cards.count].rankvalue - 1) then
  18.                   equalvalue2 = 1
  19.                 else
  20.                   equalvalue2 = 0
  21.                 end if
  22.               end if
  23.             end if
  24.           end if
  25.         end if
  26.       end if
  27.     end if
  28.   end if
  29. end
  30.  
  31. on mouseLeave me
  32.   global equalvalue2, hotti
  33.   hotti = 0
  34.   equalvalue2 = 0
  35. end
  36.